package com.ss.android.account.d;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.ss.android.common.app.AbsFragment;
import im.quar.autolayout.utils.AutoUtils;

public abstract class a extends AbsFragment implements e {
    public c a;

    public a() {

    }

    @NonNull public abstract c a(Context arg1);

    public abstract void a();

    public abstract void a(View arg1);

    public abstract void b();

    public abstract void b(View arg1);

    public void onActivityResult(int arg2, int arg3, Intent arg4) {
        super.onActivityResult(arg2, arg3, arg4);
        this.a.a(arg2, arg3, arg4);
    }

    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        if(this.a == null) {
            this.a = this.a(this.getActivity());
        }
    }

    public View onCreateView(LayoutInflater arg4, ViewGroup arg5, Bundle arg6) {
        super.onCreateView(arg4, arg5, arg6);
        View v0 = arg4.inflate(com.ss.android.article.browser.R.layout.a2, null);
        AutoUtils.auto(v0);
        this.a(v0);
        this.a.a(((e)this));
        this.a.a(this.getArguments(), arg6);
        this.a();
        this.b(v0);
        this.b();
        return v0;
    }

    public void onDestroyView() {
        super.onDestroyView();
        this.a.b();
        this.a.a();
    }

    public void onPause() {
        super.onPause();
    }

    public void onResume() {
        super.onResume();
    }

    public void onSaveInstanceState(Bundle bundle) {
        super.onSaveInstanceState(bundle);
    }
}

